package com.newland.starpos.partner.mapper;

import com.newland.starpos.partner.bean.po.Grade;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newland.starpos.partner.bean.po.GradeFlow;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuNW
 * @since 2018-09-30
 */
public interface GradeMapper extends BaseMapper<Grade> {

    Grade findGrade(Long userId);

    GradeFlow findLastGradeFlow(@Param("userId") Long userId, @Param("gradeType") String gradeType);
}
